package com.wg.spring;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients(basePackages = {"com.wg.spring.feign"})
public class SpringbootEnvironmentApplication {

    public static void main(String[] args) {

        ConfigurableApplicationContext configurableApplicationContext = SpringApplication.run(SpringbootEnvironmentApplication.class, args);
//        String property = configurableApplicationContext.getEnvironment().getProperty("conpon.user.name");
//        System.err.println(property);
    }

}
